font chooser: Properly include freetype headers
authorLeonardo Taccari <iamleot@gmail.com>
Fri, 9 Nov 2018 21:13:30 +0000 (22:13 +0100)
committerLeonardo Taccari <iamleot@gmail.com>
Fri, 9 Nov 2018 21:13:30 +0000 (22:13 +0100)
freetype headers should be included via <ft2build.h> and then
indirectly via FT_*_H macros.

Fixes issue #1432.

gtk/gtkfontchooserwidget.c

index 1b1be3d9a21c4bae8109a30ce91371c57eed63ed..9fac247a9fa50030485c4c123209c5cccf502229 100644 (file)
@@ -61,8 +61,9 @@
 #include <hb.h>
 #include <hb-ot.h>
 #include <hb-ft.h>
-#include <freetype/freetype.h>
-#include <freetype/ftmm.h>
+#include <ft2build.h>
+#include FT_FREETYPE_H
+#include FT_MULTIPLE_MASTERS_H
 #include "language-names.h"
 #include "script-names.h"
 #endif